package com.xxl.job.admin.dao;

import com.xxl.job.admin.core.model.XxlJobDemo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @BelongsProject: xxl-job
 * @BelongsPackage: com.xxl.job.admin.dao
 * @ClassName xxlJobDemoDao
 * @Author: LISANYONG
 * @CreateTime: 2023-11-25  11:15
 * @Version: 1.0
 */
@Mapper
public interface XxlJobDemoDao {
//    @Select("select * from t_user_mobile_plan where mod(id,#{shardingTotal})=#{shardingIndex}")
    List<XxlJobDemo> selectByMod(@Param("shardingIndex") Integer shardingIndex, @Param("shardingTotal")Integer shardingTotal);

    List<XxlJobDemo> selectAll();
}
